// d3d RGB effects patterns

static const unsigned char pattern_18x10_large_round[] =
{
	0x00,0x00,0x5f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff,
	0x5f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff,

	0x00,0x00,0xdf,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff,
	0xdf,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x9f,0x00,0xff,
	0x00,0xdf,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x9f,0xff,

	0x00,0x00,0xff,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x00,0x00, 0x5f,0x00,0x00,0xff, 0xe1,0x00,0x00,0xff,
	0xff,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xe1,0x00,0xff,
	0x00,0xff,0x00,0xff, 0x00,0xdf,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xe1,0xff,

	0x00,0x00,0xdf,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff,
	0xdf,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x9f,0x00,0xff,
	0x00,0xdf,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x9f,0xff,

	0x00,0x00,0x5f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff,
	0x5f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff,

	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00,

	0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0xdf,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0x3f,0x00,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0x3f,0xff,
	0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff,

	0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xe1,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0xdf,0x00,0xff, 0x00,0x5f,0x00,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xe1,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff,
	0x00,0x00,0x00,0x00, 0x5f,0x00,0x00,0xff, 0xe1,0x00,0x00,0xff, 0xff,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff,

	0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0xdf,0x00,0xff, 0x00,0x9f,0x00,0xff, 0x00,0x3f,0x00,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x9f,0xff, 0x00,0x00,0x3f,0xff,
	0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x9f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff,

	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x3f,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0x3f,0x00,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x3f,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x3f,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x3f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00
};

static const unsigned char pattern_12x10_large_ellipsoid[] =
{
	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x00,0x00,

	0x7f,0x00,0x00,0xff, 0xff,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x7f,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x7f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x7f,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x00,0x00,

	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x00,0x00,

	0x1f,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x00,0x00,

	0x00,0x1f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x00,0x00,
	0x1f,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,

	0x00,0x5f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x00,0x00,
	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,

	0x00,0x7f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x7f,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x00,0x00,
	0x7f,0x00,0x00,0xff, 0xff,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x7f,0x00,0xff, 0x00,0xff,0x00,0xff,

	0x00,0x5f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0x00,0x00,
	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,

	0x00,0x1f,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x00,0x00,
	0x1f,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x00,0x00,0x00, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,

	0x1f,0x00,0x00,0x00, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x1f,0x00,0x00, 0x00,0x7f,0x00,0xff,
	0x00,0x1f,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x1f,0x00, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0x00, 0x00,0x00,0x00,0x00
};

static const unsigned char pattern_10x6_large_dot[] =
{
	0x00,0xff,0x00,0x00, 0x00,0x7f,0xff,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff,
	0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00, 0xff,0x7f,0x00,0x00,

	0x00,0xff,0x00,0x00, 0x00,0x3f,0xff,0x00, 0x00,0x00,0xbf,0x00, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00,
	0x00,0xbf,0x00,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0xbf,0x00,0x00,0x00, 0xff,0x3f,0x00,0x00,

	0x00,0xbf,0x00,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0xbf,0x00,0x00,0x00, 0xff,0x3f,0x00,0x00,
	0x00,0xff,0x00,0x00, 0x00,0x3f,0xff,0x00, 0x00,0x00,0xbf,0x00, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00,

	0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00, 0xff,0x7f,0x00,0x00,
	0x00,0xff,0x00,0x00, 0x00,0x7f,0xff,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0x00,0x00,0x00,0xff,

	0x00,0xbf,0x00,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0xbf,0x00,0x00,0x00, 0xff,0x3f,0x00,0x00,
	0x00,0xff,0x00,0x00, 0x00,0x3f,0xff,0x00, 0x00,0x00,0xbf,0x00, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00,

	0x00,0xff,0x00,0x00, 0x00,0x3f,0xff,0x00, 0x00,0x00,0xbf,0x00, 0x00,0x00,0x00,0xff, 0xff,0x00,0x00,0x00,
	0x00,0xbf,0x00,0x00, 0x00,0x00,0xff,0x00, 0x00,0x00,0x00,0xff, 0xbf,0x00,0x00,0x00, 0xff,0x3f,0x00,0x00
};

static const unsigned char pattern_9x10_ellipsoid[] =
{
	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff,
	0x7f,0x00,0x00,0xff, 0xff,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x00,0x7f,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x7f,0x00,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x7f,0xff,
	0x5f,0x00,0x00,0xff, 0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff,
	0x1f,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff, 0x1f,0x00,0x00,0xff,
	0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x5f,0x00,0x00,0xff,
	0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x7f,0x00,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x7f,0xff, 0x7f,0x00,0x00,0xff,
	0xff,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x00,0x7f,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0x5f,0xff, 0x00,0x00,0xdf,0xff, 0x00,0x00,0x5f,0xff, 0x5f,0x00,0x00,0xff,
	0xdf,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0xdf,0x00,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff, 0x1f,0x00,0x00,0xff,
	0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,
	0x1f,0x00,0x00,0xff, 0x7f,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x7f,0x00,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0x1f,0xff, 0x00,0x00,0x7f,0xff, 0x00,0x00,0x1f,0xff
};

static const unsigned char pattern_8x8_mame_rgbtiny[] =
{
	0x00,0xff,0x00,0x00, 0x00,0x80,0x00,0x00, 0x00,0x80,0xff,0x00, 0x80,0x00,0xff,0x00,
	0x80,0x00,0x00,0x00, 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,

	0x00,0xff,0x00,0x00, 0x00,0x80,0x00,0x00, 0x00,0x80,0xff,0x00, 0x80,0x00,0xff,0x00,
	0x80,0x00,0x00,0x00, 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,

	0x00,0x80,0x00,0x00, 0x00,0x00,0x00,0x00, 0x80,0xff,0x80,0x00, 0xff,0x80,0x80,0x00,
	0x00,0x00,0x00,0x00, 0x80,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,

	0x00,0x00,0x00,0x00, 0x80,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,
	0x00,0x80,0x00,0x00, 0x00,0x00,0x00,0x00, 0x80,0xff,0x80,0x00, 0xff,0x80,0x80,0x00,

	0x80,0x00,0x00,0x00, 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,
	0x00,0xff,0x00,0x00, 0x00,0x80,0x00,0x00, 0x00,0x80,0xff,0x00, 0x80,0x00,0xff,0x00,

	0x80,0x00,0x00,0x00, 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,
	0x00,0xff,0x00,0x00, 0x00,0x80,0x00,0x00, 0x00,0x80,0xff,0x00, 0x80,0x00,0xff,0x00,

	0x00,0x00,0x00,0x00, 0x80,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00,
	0x00,0x80,0x00,0x00, 0x00,0x00,0x00,0x00, 0x80,0xff,0x80,0x00, 0xff,0x80,0x80,0x00,

	0x00,0x80,0x00,0x00, 0x00,0x00,0x00,0x00, 0x80,0xff,0x80,0x00, 0xff,0x80,0x80,0x00,
	0x00,0x00,0x00,0x00, 0x80,0x00,0x00,0x00, 0xff,0xff,0xff,0x00, 0xff,0xff,0xff,0x00
};

static const unsigned char pattern_6x8_rgb_pattern[] =
{
	0xbf,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0xbf,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x00,0xbf,0xff, 0x00,0x00,0x1f,0xff,
	0xff,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x5f,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x5f,0xff,
	0xbf,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0xbf,0x00,0xff, 0x00,0x1f,0x00,0xff, 0x00,0x00,0xbf,0xff, 0x00,0x00,0x1f,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0xbf,0xff, 0x00,0x00,0x1f,0xff, 0xbf,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0xbf,0x00,0xff,
	0x00,0x5f,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x5f,0xff, 0xff,0x00,0x00,0xff, 0x5f,0x00,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x1f,0x00,0xff, 0x00,0x00,0xbf,0xff, 0x00,0x00,0x1f,0xff, 0xbf,0x00,0x00,0xff, 0x1f,0x00,0x00,0xff, 0x00,0xbf,0x00,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00
};

static const unsigned char pattern_4x6_rgb_pattern[] =
{
	0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00,
	0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
	0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00, 0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00, 0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00
};

static const unsigned char pattern_4x4_mame_rgbtiny[] =
{
	0x00,0xff,0x00,0x00, 0x00,0x00,0xff,0x00, 0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0xff,
	0x00,0x00,0x00,0xff, 0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0xff, 0xff,0xff,0xff,0xff,
	0xff,0x00,0x00,0x00, 0xff,0xff,0xff,0xff, 0x00,0xff,0x00,0x00, 0x00,0x00,0xff,0x00,
	0x00,0x00,0x00,0xff, 0xff,0xff,0xff,0xff, 0x00,0x00,0x00,0xff, 0xff,0xff,0xff,0xff
};

static const unsigned char pattern_4x4_rgb_pattern[] =
{
	0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00,
	0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00,
	0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00, 0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff,
	0x00,0x00,0xff,0xff, 0x00,0x00,0x00,0x00, 0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff
};

static const unsigned char pattern_3x1_aperture_grille[] =
{
	0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff, 0x00,0x00,0xff,0xff
};

// pattern info

static struct { const TCHAR* szName; const unsigned char* pData; } BuiltinPatternInfo[] =
{
	{ _T("18x10_large_round.i.rgb"), pattern_18x10_large_round },
	{ _T("12x10_large_ellipsoid.i.rgb"), pattern_12x10_large_ellipsoid },
	{ _T("10x6_large_dot.i.rgb"), pattern_10x6_large_dot },
	{ _T("9x10_ellipsoid.i.rgb"), pattern_9x10_ellipsoid },
	{ _T("8x8_mame_rgbtiny.i.rgb"), pattern_8x8_mame_rgbtiny },
	{ _T("6x8_rgb_pattern.i.rgb"), pattern_6x8_rgb_pattern },
	{ _T("4x6_rgb_pattern.i.rgb"), pattern_4x6_rgb_pattern },
	{ _T("4x4_mame_rgbtiny.i.rgb"), pattern_4x4_mame_rgbtiny },
	{ _T("4x4_rgb_pattern.i.rgb"), pattern_4x4_rgb_pattern },
	{ _T("3x1_aperture_grille.i.rgb"), pattern_3x1_aperture_grille },

	{ NULL, NULL }
};
